package com.dingreading.cloud.web.service;

import com.dingreading.cloud.common.util.PageUtil;
import com.dingreading.cloud.web.entity.TellHistoryCode;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 *  服务层。
 *
 * @author Administrator
 * @since 2024-04-07
 */
public interface TellHistoryCodeService extends IService<TellHistoryCode> {

    TellHistoryCode getByCode(String code);

    long getByOpenidAndCode(String openid);

    TellHistoryCode getByOpenid(String openid);

    Page<TellHistoryCode> pageList(PageUtil pageUtil, String keyword, Integer enabled);

    List<String> getByCodes(List<String> codes);
}
